import { $t } from '@/common/utils/i18n'

export default {
  path: '/business',
  component: 'Layout',
  name: 'Business', // 必须要指名name

  // 多个children的时候，通过redirect指定默认的侧边菜单项
  redirect: '/business/one',

  meta: {
    title: $t('业务配置'),
    icon: 'el-icon-set-up'
  },
  children: [
    {
      path: '/business',
      name: 'BusinessOne',
      component: () => import('@/views/BusinessConfig/one.vue'),
      meta: {
        title: '业务子菜单1'
      }
    },
    {
      path: 'two',
      component: () => import('@/views/BusinessConfig/two.vue'),
      meta: {
        title: '业务子菜单2'
      }
    }
  ]
}
